import { postAction } from '@/api/manage'
// 通用
// export const pattern = '/jic-imagemanage-api-center/'
export const pattern = '/imagemanage-center/'
const apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
export const uploadUrl = apiBaseUrl + `/api/gateway/imagemanage-center/img/upload`
export const uploadFile = apiBaseUrl + `/api/gateway/imagemanage-center/upload/file`
export const currencyCreate = (key, params) => postAction(`${pattern}${key}/save`, params)
export const imgCreate = (key, params) => postAction(`${pattern}${key}/batchSave`, params)
export const editionList = (key, params) => postAction(`${pattern}${key}/query`, params)
export const currencyUpdate = (key, params) => postAction(`${pattern}${key}/update`, params)
export const currencyList = (key, params) => postAction(`${pattern}${key}/list`, params)

export const createCategory = (params) => postAction(`${pattern}category/save`, params)
export const updateCategory = (params) => postAction(`${pattern}category/update`, params)
export const createGroup = (params) => postAction(`${pattern}group/save`, params)
export const updateGroup = (params) => postAction(`${pattern}group/update`, params)
export const createElement = (params) => postAction(`${pattern}element/save`, params)
export const updateElement = (params) => postAction(`${pattern}element/update`, params)
export const categoryList = (params) => postAction(`${pattern}category/list`, params)

// 系统属性查询 品牌 色号 季节 
export const getSystemPro = (key, params) => postAction(`${pattern}system/${key}`, params)
export const getexamineList = (key, params) => postAction(`${pattern}pattern/examine/list/${key}`, params)
export const queryDetail = (key, params) => postAction(`${pattern}${key}/query`, params)
export const queryExtendInfo = (key, params) => postAction(`${pattern}${key}/extend/info`, params)

export const patentDetail = (key, params) => postAction(`${pattern}${key}/info`, params)
export const queryFull = (key, params) => postAction(`${pattern}${key}/full`, params)
export const createEdition = (key, params) => postAction(`${pattern}${key}/save`, params)
export const examineList = (key, params) => postAction(`${pattern}pattern/examine/list`, params)
export const examine = (key, params) => postAction(`${pattern}pattern/examine`, params)
export const examineCount = (key, params) => postAction(`${pattern}pattern/examine/listCount`, params)
export const getExamineHistory = (key, params) => postAction(`${pattern}pattern/examine/history${key}`, params)
export const getYidunHistory = (key, params) => postAction(`${pattern}pattern/yidun/check/${key}`, params)

export const createSensitiveword = (params) => postAction(`${pattern}sensitiveword/save`, params)
export const updateSensitiveword = (params) => postAction(`${pattern}sensitiveword/update`, params)
export const toUpdateStatus = (params) => postAction(`${pattern}/pattern/submit/update`, params)
export const sealup = (params) => postAction(`${pattern}pattern/sealup`, params)


